package org.dromara.system.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 仓库对象 app_warehouse
 *
 * @author Lion Li
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("app_warehouse")
public class AppWarehouse extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;


    @TableId(value = "id")
    private Long id;


    /**
     * 仓库ID
     */
    private Long storeId;

    /**
     * 原料id
     */
    private Long materialId;

    /**
     * 仓库名称
     */
    private String name;

    /**
     * 货物类型
     */
    private String goodsType;

    /**
     * 库存量
     */
    private Long stock;

    /**
     * 备注
     */
    private String remark;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 管理员ID
     */
    private Long adminUserId;

    @TableField(exist = false)
    private BigDecimal price;


}
